﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApp.Api
{
    /// <summary>
    /// api 的摘要说明
    /// </summary>
    public class DesignerApi : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string cmd = context.Request.QueryString["sys:cmd"];
            if (string.Equals(cmd, "getactivitylist"))
            {
                string file = context.Server.MapPath("~/App_Data/activitylist.json");
                string text = System.IO.File.ReadAllText(file);
                context.Response.Write(text);
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}